package com.qfmy.webapp.controller.common;

import com.qfmy.common.result.Result;
import com.qfmy.webapp.service.common.PlatformInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 清风明月
 * @Package com.qfmy.webapp.controller.common
 * @date 2025/11/12
 * @description 平台信息
 */
@RestController
@RequestMapping("/app/platformInfo")
@SuppressWarnings("all")
public class PlatformInfoController {

       /**
        * 注入service
        */
       @Autowired
       private PlatformInfoService platformInfoService;

      /**
       * 根据类型获取平台信息
       */
      @GetMapping("/getPlatformInfo")
      public Result<String> getPlatformInfo(@RequestParam String category){
       String content = platformInfoService.getPlatformInfo(category);
       return Result.ok(content);
      }
}
